package com.zjb.demo.common.domain.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 操作日志
 *
 * @author 庄佳彬
 * @since 2023/12/25 22:33
 */
@Table("sys_oper_log")
@ApiModel(value = "操作日志")
public class SysOperationLog {
    @Column("oper_id")
    @ExcelProperty("日志主键")
    @ApiModelProperty(value = "日志主键")
    @Id(keyType = KeyType.Generator, value = KeyGenerators.flexId)
    private Long operId;
    @Column("title")
    @ExcelProperty("模块标题")
    @ApiModelProperty(value = "模块标题")
    private String title;
    @Column("business_type")
    @ExcelProperty("业务类型")
    @ApiModelProperty(value = "业务类型（0其它 1新增 2修改 3删除)")
    private int businessType;
    @Column("method")
    @ExcelProperty("方法名称")
    @ApiModelProperty(value = "方法名称")
    private String method;
    @Column("request_method")
    @ExcelProperty("请求方式")
    @ApiModelProperty(value = "请求方式")
    private String requestMethod;
    @Column("operator_type")
    @ExcelProperty("操作类别")
    @ApiModelProperty(value = "操作类别（0其它 1后台用户 2手机端用户）")
    private int operatorType;
    @Column("oper_name")
    @ExcelProperty("操作人员")
    @ApiModelProperty(value = "操作人员")
    private String operName;
    @Column("dept_name")
    @ExcelProperty("部门名称")
    @ApiModelProperty(value = "部门名称")
    private String deptName;
    @Column("oper_url")
    @ExcelProperty("请求URL")
    @ApiModelProperty(value = "请求URL")
    private String operUrl;
    @Column("oper_ip")
    @ExcelProperty("主机地址")
    @ApiModelProperty(value = "主机地址")
    private String operIp;
    @Column("oper_location")
    @ExcelProperty("操作地点")
    @ApiModelProperty(value = "操作地点")
    private String operLocation;
    @Column("oper_param")
    @ExcelProperty("请求参数")
    @ApiModelProperty(value = "请求参数")
    private String operParam;
    @Column("json_result")
    @ExcelProperty("返回参数")
    @ApiModelProperty(value = "返回参数")
    private String jsonResult;
    @Column("status")
    @ExcelProperty("操作状态")
    @ApiModelProperty(value = "操作状态（0正常 1异常）")
    private int status;
    @Column("error_msg")
    @ExcelProperty("错误消息")
    @ApiModelProperty(value = "错误消息")
    private String errorMsg;
    @Column("oper_time")
    @ExcelProperty("操作时间")
    @ApiModelProperty(value = "操作时间")
    private Date operTime;
}
